﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
    
}
@model List<ElingOA6_DSJCJ.Models.WebMapGridModels> 
<!DOCTYPE html>

<div class="main2">
    <div class="paging-title background1000"><span>当前位置：首页 > 网站地图</span><h2>网站地图</h2></div>
    <div class="paging-content3">
        <table width="100%" border="0" style="text-align:left;" class="wap">
          <tr>
            <td>
                @{
                    List<ElingOA6_DSJCJ.Models.WebMapGridModels> tmpWebMapListLevel0 = (from c in Model
                                                                              where c.FPreId == null
                                                                              select c).ToList();
                    foreach (ElingOA6_DSJCJ.Models.WebMapGridModels tmpWebModelLevel0 in tmpWebMapListLevel0)
                    {
                        <table width="100%" border="0">
                          <tr>
                            <td class="wap-td1"><b>@tmpWebModelLevel0.FName</b></td>
                          </tr>
                        </table>
                        List<ElingOA6_DSJCJ.Models.WebMapGridModels> tmpWebMapListLevel1 = (from c in Model
                                                                                           where c.FPreId == tmpWebModelLevel0.FId
                                                                                           select c).ToList();
                        foreach(ElingOA6_DSJCJ.Models.WebMapGridModels tmpWebModelLevel1 in tmpWebMapListLevel1)
                        {
                            <table width="100%" border="0">
                                <tr>
                                    <td>
                                    <a href="@tmpWebModelLevel1.FUrl"><strong>【@tmpWebModelLevel1.FName】</strong></a>
                                    @{
                                        List<ElingOA6_DSJCJ.Models.WebMapGridModels> tmpWebMapListLevel2 = (from c in Model
                                                                                                        where c.FPreId == tmpWebModelLevel1.FId
                                                                                                        select c).ToList();
                                        foreach(ElingOA6_DSJCJ.Models.WebMapGridModels tmpWebModelLevel2 in tmpWebMapListLevel2)
                                        {
                                            <a href="@tmpWebModelLevel2.FUrl">@tmpWebModelLevel2.FName</a>
                                        }
                                    }
                                    </td>
                                </tr>
                            </table>
                        }
                    }
                                                                              
                }
                    
                
                
            </td>
          </tr>
        </table>
    </div>
</div>